/**
批量设置常量，为特定的单据设置批量
***/
var pldsIds = ['ds_fx_xs_item1','ds_fx_xs_item2','ds_fx_jh_item1','ds_fx_jh_item2',
               'ds_fx_os_rk_item1','ds_fx_os_ck_item1','ds_fx_zd_item1',
               'ds_fx_shelves_sjxj_item1','ds_fx_shelves_sjxj_item2','ds_fx_stocks_db_item1','ds_fx_os_ck_item2'];

function plsetCheck(dsid){
	for(var i = 0; i < pldsIds.length; i ++ ){
		if(pldsIds[i] == dsid)
			return true;
	}
	return false;
}
//显示单品多行配置页面的dsid
var checkboxdsIds =['ds_fx_os_ck_item1','ds_fx_xs_item2','ds_fx_os_rk_item1','ds_fx_os_ck_item2','ds_fx_zd_item1','ds_fx_xs_item1'];
function palycheckbox(dsid){
	for(var i = 0; i < checkboxdsIds.length; i ++ ){
		if(checkboxdsIds[i] == dsid)
			return true;
	}
	return false;
}
/***************************
 *批量设置 
 *kfV 库房
 *slV 数量
 *zkV 折扣
 *jhV 架号
 ***************************/
function checkNotColn(dsid){
	var str="";
	switch (dsid) {
	case "ds_fx_xs_item1":  
		break;
	case "ds_fx_xs_item2":  
		break;
	case "ds_fx_jh_item2":    //到货退货 
		str="zkV"; 
		break;
	case "ds_fx_os_rk_item1":  
		break;
	case "ds_fx_os_ck_item1":  
		break;
	case "ds_fx_zd_item1":  
		break;
	case "ds_fx_shelves_sjxj_item1":  
		break;
	case "ds_fx_shelves_sjxj_item2":  
		break;
	case "ds_fx_xs_item3":
		str="kfV";
		break;
	};
	return str;
}


/**
 * 明细界面上的商品等条件的控制
 */
var configDsIds = ['ds_fx_xs_item1','ds_fx_xs_item2','ds_fx_jh_item1','ds_fx_jh_item2','ds_fx_os_rk_item1',
                   'ds_fx_os_ck_item1','ds_fx_zd_item1','ds_fx_tj_price_item1','ds_fx_zt_book_item1','ds_fx_xs_client_item1',
                   'ds_fx_xs_fee_item1','ds_fx_client_sxsj_item1','ds_fx_shelves_sjxj_item1','ds_fx_shelves_sjxj_item2',
                   'ds_fx_shelves_tj_item1','ds_fx_os_ck_item2','ds_fx_stocks_db_item1','ds_fx_groupMaintain_item1'];

function configCheck(dsId){
	for(var i = 0; i < configDsIds.length; i++ ){
		if(configDsIds[i] == dsId)
			return true;
	}
	return false;
}
/**
 * 明细界面上的材料等条件的控制
 */
var clDsIds = ['ds_yz_cl_outstock_item1'];

function clConfigCheck(dsId){
	for(var i = 0; i < clDsIds.length; i++ ){
		if(clDsIds[i] == dsId)
			return true;
	}
	return false;
}
